//实现倒计效果
	var interval = 1000;
	function ShowCountDown(year,month,day,divname){
		var date = new Date();
		var now = new Date(); 
		var endDate = new Date(year, month-1, day); 
		var leftTime= endDate.getTime()-now.getTime(); 
		var leftsecond = parseInt(leftTime/1000); 
		//console.log(now.getTime());
		//var day1=parseInt(leftsecond/(24*60*60*6)); 
		var day1=Math.floor(leftsecond/(60*60*24)); 
		var hour=Math.floor((leftsecond-day1*24*60*60)/3600); 
		var minute=Math.floor((leftsecond-day1*24*60*60-hour*3600)/60); 
		var second=Math.floor(leftsecond-day1*24*60*60-hour*3600-minute*60); 
		var sumTime = 0;
		var cc = document.getElementById(divname); 
		if(hour > 9 && minute > 9 && second > 9){
			//console.log('111');
			cc.innerHTML = "<span>距今日订购结束</span><div class='countDownTime' style='font-family: arial'>"+hour+"&nbsp;:&nbsp;"+minute+"&nbsp;:&nbsp;"+second+"</div>"; 
		}
		if(hour <= 9 && minute > 9 && second > 9){
			//console.log('222');
			cc.innerHTML = "<span>距今日订购结束</span><div class='countDownTime' style='font-family: arial'>0"+hour+"&nbsp;:&nbsp;"+minute+"&nbsp;:&nbsp;"+second+"</div>"; 
		}
		if(hour <= 9 && minute <= 9 && second > 9){
			//console.log('333');
			cc.innerHTML = "<span>距今日订购结束</span><div class='countDownTime' style='font-family: arial'>0"+hour+"&nbsp;:&nbsp;0"+minute+"&nbsp;:&nbsp;"+second+"</div>"; 
		}
		if(hour <= 9 && minute > 9 && second <= 9){
			//console.log('444');
			cc.innerHTML = "<span>距今日订购结束</span><div class='countDownTime' style='font-family: arial'>0"+hour+"&nbsp;:&nbsp;"+minute+"&nbsp;:&nbsp;0"+second+"</div>"; 
		}
		if(hour <= 9 && minute <= 9 && second <= 9){
			//console.log('555');
			cc.innerHTML = "<span>距今日订购结束</span><div class='countDownTime' style='font-family: arial'>0"+hour+"&nbsp;:&nbsp;0"+minute+"&nbsp;:&nbsp;0"+second+"</div>"; 	
		}
		if(hour > 9 && minute <= 9 && second > 9){
			//console.log('666');
			cc.innerHTML = "<span>距今日订购结束</span><div class='countDownTime' style='font-family: arial'>"+hour+"&nbsp;:&nbsp;0"+minute+"&nbsp;:&nbsp;"+second+"</div>"; 	
		}
		if(hour > 9 && minute <= 9 && second <= 9){
			//console.log('777');
			cc.innerHTML = "<span>距今日订购结束</span><div class='countDownTime' style='font-family: arial'>"+hour+"&nbsp;:&nbsp;0"+minute+"&nbsp;:&nbsp;0"+second+"</div>"; 	
		}
		if(hour > 9 && minute > 9 && second <= 9){
			//console.log('888');
			cc.innerHTML = "<span>距今日订购结束</span><div class='countDownTime' style='font-family: arial'>"+hour+"&nbsp;:&nbsp;"+minute+"&nbsp;:&nbsp;0"+second+"</div>"; 	
		}
	}
	window.setInterval(function(){
		var date = new Date();
		var year = date.getFullYear();
		var month = date.getMonth();
		var mMonth = month + 1;
		var day = date.getDate();
		var mDay = day+1;
		ShowCountDown(year,mMonth,18,'countDown');
	}, interval); 



